/**
 * Created by xiey on 2016/4/18.
 */
var path        = require('path'),
    gulp        = require('gulp'),
    conf        = require('./common/conf'),
    browserSync = require('browser-sync');

var $ = require('gulp-load-plugins')();


gulp.task('scripts-reload', function () {
    return buildScripts()
        .pipe(browserSync.stream());
});

gulp.task('scripts', function () {
    return buildScripts();
});

function buildScripts() {
    return gulp.src(path.join(conf.paths.src, '**/*.js'));
}
